<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>媒体播放</title>

    <script src="./assets/jquery/jquery.min.js"></script>
    <link href="./assets/video.js/video-js.min.css" rel="stylesheet" />
    <script src="./assets/video.js/video.min.js" defer="defer"></script>
    <script src="./assets/video.js/lang/zh-CN.js" defer="defer"></script>

    <link href="./MediaView.css" rel="stylesheet" />
    <script src="./MediaView.js" defer="defer"></script>

</head>

<body>
    <div>
        src:<input id="iptSrc">
    </div>
    <button id="btnChangeSrc">Change</button>
    <button id="btnPlay">play</button>
    <br>

    <div class="video-container">
        <canvas id="canvasVideo"></canvas>

        <div class="main-container">
            <video id="main-video" class='video-js main-video' controls preload='auto' data-setup1='{}'
                autoplay="autoplay" src="1.mp4">
            </video>
        </div>
    </div>
</body>

</html>